* {
    margin: 0;
    padding: 0;
    font-family: Segoe UI, Netflix Sans, Helvetica Neue, Segoe UI, Roboto, Ubuntu, sans-serif;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: black;
    color: white;
    font-family: 'Segoe UI';
    margin: 0;
    padding: 0;
}

.main {
    background-image: url("bg.jpg");
    background-position: center center;
    background-size: max(1300px, 100vw);
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.main .box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99vh;
    opacity: 0.70;
    background-color: black;
}

nav {
    max-width: 90vw;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 20px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-form {
    display: inline;
    margin: 0;
}

nav img {
    width: 148px;
    position: relative;
    z-index: 10;
}

nav button {
    position: relative;
    z-index: 10;
}

.hero {
    height: calc(100% - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    font-size: 20px;
    position: relative;
    z-index: 10;
    font-family: Netflix Sans, Helvetica Neue, Segoe UI, Roboto, Ubuntu, sans-serif;
    gap: 30px;
    padding: 0 30px;
    text-align: center;
}

.hero form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.hero> :nth-child(1) {
    font-style: normal;
    font-weight: 900;
    font-size: 56px;
    line-height: 70px;
    text-align: center;
    width: 100%;
    max-width: 583px;
}

.hero> :nth-child(2) {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    text-align: center;
}

.hero>:nth-child(3) {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

.separation {
    height: 11px;
    background-color: rgba(238, 19, 19, 0.863);
    border: none;
}

.btn {
    padding: 0.76rem 1.5rem;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    background-color: red;
    border-radius: 0.25rem;
    width: auto;
    border: none;
    cursor: pointer;
    color: white;
}

.btn-red {
    background-color: red;
    color: white;
    /* padding: 0.76rem 1.5rem; */
    /* font-size: 1.5rem; */
}

.btn-red-sm {
    background-color: rgba(23, 23, 23, 0.5);
    color: white;
    border: 1px solid grey;
}

.main input {
    padding: 0.65rem 1.5rem;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1;
    background-color: rgba(23, 23, 23, 0.7);
    border-radius: 0.25rem;
    width: auto;
    cursor: text;
    color: white;
    border: 1px solid grey;
}


::placeholder {
    color: silver;
}


.btn-up {
    padding: 10px;
    margin: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 14px;
    font-weight: 500;
}

.main2 {
    background-color: black;
    width: 100%;
    padding: 0; /* Remove left/right padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.trend {
    color: white;
    font-weight: 500;
    font-size: 24px;
    line-height: normal;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
    padding-left: 40px;
}

.main2content {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    padding: 40px 0;
    margin: 0;
    width: 100%; /* Ensure it uses all available width */
    background: black;
    flex-wrap: wrap; /* allow cards to wrap on small screens */
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    background: black;
}

.ranking-number-svg {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 10;
    pointer-events: none;
}

/* Remove old .ranking-number styles if present */
.ranking-number {
    display: none;
}

.trend {
    color: white;
    font-weight: 500px;
    font-size: 24px;
    line-height: normal;
    margin-bottom: 20px;
}

.trend h1 {
    font-size: 1.3em;
    margin: 20px;
}

@supports not (-webkit-text-stroke: 2px white) {

    /* Simplified support check */
    .ranking-number {
        color: black;
        text-shadow:
            -1px -1px 0 white,
            1px -1px 0 white,
            -1px 1px 0 white,
            1px 1px 0 white;
    }
}

.faq {
    background-color: black;
    color: white;
    font-family: 'Segoe UI';
    align-items: center;
    width: 100%;
    padding: 0 5vw;
    overflow: hidden;
}

.faq h2 {
    margin-top: 80px;
    margin-bottom: 0;
    padding: 10px 0;
    font-weight: 500;
    font-size: 24px;
    text-align: center;
    width: 100%;
}

.faqbox {
    display: flex;
    background-color: rgba(104, 104, 104, 0.50);
    padding: 24px;
    max-width: 60vw;
    margin: 24px auto;
    font-weight: 400;
    font-size: 34px;
    cursor: pointer;
    justify-content: space-between;
    transition: all 0.4s ease-in-out;
    align-items: center;
}

.faqbox:hover{
    background-color: rgba(104, 104, 104, 0.80); ;
}



.psvg {
    height: 50px;
    width: 50px;
    color: white;
    flex-shrink: 0;
}


/* .number-1,
            .number-2,
            .number-3,
            .number-4,
            .number-5 {
                position: absolute;
                bottom: 0;
                left: 0;
                z-index: 10;
                font-size: 8em;
                font-weight: bold;
                color: white;
                -webkit-text-stroke: 2px rgb(255, 255, 255);
                -webkit-text-fill-color: black;
                margin-left: 5px;
                margin-bottom: 15px;
                user-select: none;
                font-family: 'Segoe UI';
            }
            
            .number-2 {
                margin-left: 250px;
            }
            
            .number-3 {
                margin-left: 490px;
            }
            
            .number-4 {
                margin-left: 730px;
            
            }
            
            .number-5 {
                margin-left: 975px;
            } */

/* Media Queries */
@media screen and (max-width: 1024px) {
    .faqbox,
    .faq-answer {
        max-width: 80vw;
        font-size: 28px;
    }
    
    .faq h2 {
        font-size: 22px;
    }
    
    .faq-answer {
        max-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .hero> :nth-child(1) {
        font-size: 40px;
        line-height: 50px;
    }

    .hero> :nth-child(2) {
        font-size: 18px;
    }

    .hero>:nth-child(3) {
        font-size: 14px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
    }

    .main input {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        width: 100%;
        max-width: 300px;
    }

    .main2content {
        gap: 20px;
    }

    .card {
        width: 45%;
        max-width: 140px;
    }

    .ranking-number {
        font-size: 4em;
    }

    .trend {
        padding-left: 0;
        text-align: center;
    }

    .faqbox,
    .faq-answer {
        max-width: 90vw;
        width: 100%;
        box-sizing: border-box;
        font-size: 24px;
    }
    
    .faq-answer {
        margin: 0 0 10px 0;
        max-width: none;
    }
    
    .faq h2 {
        font-size: 20px;
        margin-top: 60px;
    }
    
    .psvg {
        height: 40px;
        width: 40px;
    }
}

@media screen and (max-width: 480px) {
    nav {
        height: 70px;
    }

    nav img {
        width: 100px;
    }

    .btn-up {
        padding: 8px;
        font-size: 12px;
    }

    .hero> :nth-child(1) {
        font-size: 32px;
        line-height: 40px;
    }

    .hero> :nth-child(2) {
        font-size: 16px;
    }

    .hero>:nth-child(3) {
        font-size: 12px;
    }

    .hero form {
        flex-direction: column;
    }

    .hero form input {
        margin-bottom: 10px;
    }

    .hero form button {
        width: 100%;
        margin-top: 10px;
    }

    .card {
        width: 80%;
        max-width: 120px;
    }

    .ranking-number {
        font-size: 3em;
    }

    .faqbox {
        padding: 20px;
        font-size: 18px;
        max-width: 80vw;
        width: 100%;
        box-sizing: border-box;
    }

    .faqbox span {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .faq-answer {
        width: 100%;
        max-width: 80vw;
        font-size: 16px;
        padding: 0 20px;
        margin: 0 0 10px 0;
        box-sizing: border-box;
    }
    
    .faq-answer.open {
        padding: 16px 20px;
    }
    
    .faq h2 {
        font-size: 18px;
        margin-top: 40px;
        padding: 0 20px;
    }
    
    .psvg {
        height: 30px;
        width: 30px;
    }
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer Styles */
.footer {
    background-color: black;
    color: #757575;
    padding: 70px 0 30px;
    border-top: 8px solid #222;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5vw;
}

.footer-top {
    margin-bottom: 30px;
}

.footer-top p {
    font-size: 16px;
}

.footer-top a {
    color: #757575;
    text-decoration: none;
}

.footer-top a:hover {
    text-decoration: underline;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-column a {
    color: #757575;
    text-decoration: none;
    font-size: 14px;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 20px;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 50px 0 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-column {
        gap: 10px;
    }

    .footer-column a {
        font-size: 13px;
    }
}

.red-hero-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: #e50914;
    z-index: 20;
}

/* Sign In Page Styles */
.sign-in-hero {
    padding: 0;
    justify-content: flex-start;
}

.sign-in-container {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    padding: 60px 68px 40px;
    min-height: 660px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.sign-in-container h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
}

.sign-in-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    height: 50px;
    background-color: #333;
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 16px 20px;
    font-size: 16px;
}

.form-group input:focus {
    background-color: #454545;
    outline: none;
}

.sign-in-btn {
    margin-top: 24px;
    height: 50px;
    font-size: 16px;
    font-weight: 700;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #b3b3b3;
    font-size: 13px;
    margin-top: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}

.help-link {
    color: #b3b3b3;
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

.sign-up-now {
    margin-top: 16px;
    color: #737373;
    font-size: 16px;
}

.sign-up-now a {
    color: #fff;
    text-decoration: none;
}

.sign-up-now a:hover {
    text-decoration: underline;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(104, 104, 104, 0.30);
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
    transition: all 0.3s ease-in-out;
    padding: 0 24px;
    margin: 0 auto 10px auto;
    max-width: 60vw;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-10px);
}
.faq-answer.open {
    padding: 16px 24px;
    max-height: 500px;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
}
